<html>
<head>
    <title>Testing</title>
</head>      

<!--<script type='text/javascript' 
        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>-->


<body>
<!--
  
JS DOC?
E.G. http://jswm.sourceforge.net/doc/
-

micro window  library for bookmarklets
- useful things they need todo etc

-bookmarklet core loader (max length ie6 win98 508 characters)



-use as many libs as possible - e.g. jquery for json etc..

-core (<5k)
	programming pattern
	json manager  (try eval( script.text)
	loader (css and script, loading screen)
	basic selector - just class, elements, divs 
	element manager ?
	extension manager
	console.log

-extensions (less than 5k each)
	confirmation boxes (yes/no)
	element manager
	tabs
	sizzle to replace basic selector engine 
	form manager
	ajax stuff
	ajax accesilbity
	overlay
	bubbling help 
	effects
	styles manager
	window manager - drag, drop, open, close, resize
    windows advanced bits




todo:
bookmarklet
consistency -MAKE LIKE JQUERY???????   looik for other patterns, or make it chainable but without the selector bit at the start?


how it'll work:
scenearios:
1)  if not already open
        loading screen
        on load display window
        form on window that submits jsonp to somewhere


<script type="text/javascript" src="booky.js"></script>
-->


<a href="javascript:bScr=document.createElement('script');bScr.setAttribute('src','booky.js');document.body.appendChild(bScr);void(0);">Bookmarklet</a>

<p>perhaps start with jquery and strip it down - moving the bits to other extensions... - but then whats the point.....need to simplyfiy everything</p>

<code>letsRunSomeCode(); 
alert("Hi World");</code>
    <h1>
        BookyLib</h1>
    <p>
        BookyLib is a lightweight javascript library specifically for writing bookmarklets.
        The bookmarklet loads the core of the program (<5k) which in turn loads the bookmarklet
        script. The bookmarklet script can use BookyLibs functions to load up more libraries and to do simple functions
        such as selecting or manipulatingelements on the DOM. It works in a jQuery like fashion so the user can select some elements and 
        apply one or more actions to it.
        </p>
        
        
        <h2>Extensiblity</h2>
        <p>It is easy to extend or to replace functions. For instance, Sizzle can replace the default selector engine, or you can write  your own
        extensions for the booky name space with access to internal fucntions like each().
        
        <p>There is a small selection of libraries as default. booky.windows.js, for instance, is a basic window manager.</p>
        
        
        
        <h2>Example Program</h2>
        <p>This program shows how easy it is to build a program that can be activated on any webpage via a bookmarklet that:</p>
        
        <ol>
            <li>Pops up window with a form</li>
            <li>Validates the form controls</li>
            <li>Submits form via ajax and displays the reply in a popup box  (need to fix up with json...)</li>
        </ol>
        
        <p>Obviously the libraries are written for this so it makes this program pretty simple todo!</p>
        
        
        
        
        
</body>
</html>